#!/bin/bash
# An ugly shell script written by Linuxrat <linuxrat@gnuchina.org>
# to create font headers for UNICON font modules. 
# Welcome you to make it better. :)
xxd $1 | awk '{
print "0x"substr($2,0,2)", ""0x"substr($2,2,2)", ""0x"substr($3,0,2)", ""0x"substr($3,2,2)", ""0x"substr($4,0,2)", ""0x"substr($4,2,2)", ""0x"substr($5,0,2)", ""0x"substr($5,2,2)", ""0x"substr($6,0,2)", ""0x"substr($6,2,2)", ""0x"substr($7,0,2)", ""0x"substr($7,2,2)", ""0x"substr($8,0,2)", ""0x"substr($8,2,2)", ""0x"substr($9,0,2)", ""0x"substr($9,2,2)",";} ' > wip.$1
